﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SheetManage.aspx.cs" Inherits="bgData_Zbmsg" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>电量数据维护</title>
    <link href="../css/SIS.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script language="javascript" type="text/javascript" src="../Js/Excel.js"></script>

    <script type="text/javascript">
    function openUpdateValue(id,type)
    {
        var sUrl;
              
        sUrl="../bgData/SheetUpdate.aspx?type="+type+"&ID_KEY="+id;
       
        var result = window.open(sUrl);
    }
    
  
    </script>

    <script type="text/javascript">
    function deleteRow(id)
    { 
        var iWidth='1';                          //弹出窗口的宽度;
            var iHeight='1';                               //弹出窗口的高度;
           var iTop = (window.screen.availHeight-30-iHeight)/2; //获得窗口的垂直位置;
           var iLeft = (window.screen.availWidth-10-iWidth)/2; //获得窗口的水平位置;
        var result =window.open('../bgData/SheetDel.aspx?id='+id,'','height=1,width=1,top='+iTop+',left='+iLeft+',location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no')
    }
    </script>

</head>
<body style="margin-top:0px; margin-left:0px;" >
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../img/cswh.bmp">
        <tr width="100%" height="36">
            <td>
            </td>
        </tr>
    </table>
    <div>
        <table style="width: 95%;">
            <tr>
                <td align="left">
                    &nbsp; &nbsp; 选择维护表:&nbsp;
                    <select id="rep" runat="server">
                        <option id="Option3" value="锅炉报表">锅炉报表</option>
                        <option id="Option4" value="汽机报表">汽机报表</option>
                        <option id="Option5" value="综合报表">综合报表</option>
                        <option id="Option6" value="厂用电报表">厂用电报表</option>
                    </select>
                    &nbsp; &nbsp; 选择机组:&nbsp;
                    <select id="jz" runat="server">
                        <option id="Option0" value="1">#1机组</option>
                        <option id="Option1" value="2">#2机组</option>
                        <option id="Option2" value="0">全厂</option>
                    </select>
                    &nbsp; &nbsp;
                    <asp:Button ID="btnChaXun" runat="server" Text="查 询" class="nvinput" OnClick="btnChaXun_Click" />
                    &nbsp; &nbsp;
                    <input type="button" id="btnAdd" value="添 加" class="nvinput" onclick="openUpdateValue('9999','add')" />
                    &nbsp;&nbsp;
                    <input type="button" id="btnExportCSV" value="导出Excel" class="nvinput" onclick="toExcel(CX)" />
                </td>
            </tr>
        </table>
    </div>
    <div id="show" runat="server">
    </div>
    <%--     <table width="160%" border="1" align="center" class="bg" valign="top" bordercolorlight="#999999"
        bordercolordark="#FFFFFF" cellspacing="0" cellpadding="1" id="CX">
        <tr style="width: 98%;" bgcolor="#CFE6FC">
            <td style="width: 3%;">
                <div align="center">
                编号
            </td>
            <td style="width: 7%;">
                <div align="center">
                参数名
            </td>
            <td style="width: 5%;">
                <div align="center">
                小时点
            </td>
            <td style="width: 5%;">
                <div align="center">
                日点
            </td>
            <td style="width: 5%;">
                <div align="center">
                月点
            </td>
            <td style="width: 5%;">
                <div align="center">
                季点
            </td>
            <td style="width: 5%;">
                <div align="center">
                年点
            </td>
            <td style="width: 3%;">
                <div align="center">
                单位
            </td>
            <td style="width: 3%;">
                <div align="center">
                报表名称
            </td>
            <td style="width: 3%;">
                <div align="center">
                设计值
            </td>
            <td style="width: 3%;">
                <div align="center">
                参数类型
            </td>
            <td style="width: 3%;">
                <div align="center">
                是否显示
            </td>
            <td style="width: 3%;">
                <div align="center">
                小数位数
            </td>
            <td style="width: 3%;">
                <div align="center">
                显示顺序
            </td>
            <td style="width: 3%;">
                <div align="center">
                参数KEY
            </td>
            <td style="width: 3%;">
                <div align="center">
                参数ID
            </td>
            <td style="width: 3%;">
                <div align="center">
                公式
            </td>
            <td style="width: 3%;">
                <div align="center">
                公式参数
            </td>
            <td style="width: 3%;">
                <div align="center">
                SQL语句
            </td>
            <td style="width: 3%;">
                <div align="center">
                最优值
            </td>
            <td style="width: 5%;">
                <div align="center">
                操 作
            </td>
        </tr>--%>
    <%-- </table>--%>
    </form>
</body>
</html>
